﻿using System;

namespace DataAccessLayer
{
    /// <summary>
    /// Class that defines comment to be added to task or project
    /// </summary>
    public class Comment
    {
        public DateTime PostDateTime { get; set; }
        public User Author { get; set; }
        public string Body { get; set; }

        /// <summary>
        /// Constructor of comment
        /// </summary>
        /// <param name="author">Defines author of comment</param>
        /// <param name="body">Body of comment</param>
        /// <param name="postDate">Comment's post date</param>
        public Comment(User author, string body, DateTime postDate)
        {
            PostDateTime = postDate;
            this.Author = author;
            this.Body = body;
        }
    }
}
